import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/'
import ElementUI from 'element-ui'
//import 'element-ui/lib/theme-default/index.css'
import 'element-ui/lib/theme-chalk/index.css'
import moment from 'moment/moment'


Vue.config.productionTip = false;

Vue.use(ElementUI);
Vue.filter('moment', function (value, formatString) {
	formatString = formatString || 'YYYY-MM-DD HH:mm:ss';
	return moment(value).format(formatString); // value可以是普通日期 20170723
    //return moment.unix(value).format(formatString); // 这是时间戳转时间
});

new Vue({
	el: '#app',
	router,
	store,
	template: '<App/>',
	components: { App }
})
